<template>
<div class="applicant-info-card">
  <div class="applicant-info-top">
    <div class="applicant-info-card-left">
      <div class="applicant-info-card-header">
        <h2>{{basicInfo}}</h2>
      </div>
      <div class="applicant-info-card-content">
        <div><span>姓名: </span><span>{{props.applyInfo?.name}}</span></div>
        <div><span>性别: </span><span>{{parseInt(props.applyInfo?.sex)==1?'男':'女'}}</span></div>
        <div><span>学号: </span><span>{{props.applyInfo?.studentNumber}}</span></div>
        <div><span>学院: </span><span>{{props.applyInfo?.college}}</span></div>
        <div><span>联系方式: </span><span>{{props.applyInfo?.phone}}</span></div>
        <div><span>邮箱: </span><span>{{props.applyInfo?.email}}</span></div>
      </div>
      <div class="small-ball"></div>
    </div>
    <div class="applicant-info-card-right">
      <div class="applicant-info-card-header">
        <h2>{{interestInfo}}</h2>
      </div>
      <div class="applicant-info-card-content">
        <!-- 自我介绍 -->
    <el-input
      :value="props.applyInfo?.introduction"
      :rows="7"
      type="textarea"
      :readonly="true"
      resize="none"
      style="font-size: 20px;"
    />
      </div>
    </div>
  </div>
  <div class="applicant-info-bottom">
    <div class="applicant-info-card-header">
        <h2>{{joinInfo}}</h2>
      </div>
    <!-- 加入原因 -->
    <el-input
      :value="props.applyInfo?.reason"
      :rows="7"
      type="textarea"
      :readonly="true"
      resize="none"
      style="font-size: 20px;"
    />
  </div>
</div>
</template>

<script setup lang='ts'>
import { defineProps } from 'vue';


const props=defineProps({
  applyInfo:{
    type:Object,
    require:true,
  }
})

const basicInfo = '基本信息';
const interestInfo = '自我介绍';
const joinInfo = '加入原因';

</script>

<style scoped lang="scss">
.applicant-info-card{
  width: 1129px;
  height: 40.1875rem;
  margin: 0 auto;
  margin-top: 2rem;
  padding-right: 15px;
  background-color: #fff;
  border: 1px solid #707070;
  border-radius: 3.125rem;
  box-shadow: .625rem .625rem .75rem .0625rem #8A8888;
  .applicant-info-card-header{
    h2{
      font-weight: 700;
      font-size: 1.875rem;
      color: #3f89b9;
    }
    margin-bottom: .9375rem;
  }
  .applicant-info-top{
    display: flex;
    font-size: 20px;
    color: #8A8888;
    .applicant-info-card-left{
      position: relative;
      top: 0;
      left: 0;
      width: 343px;
      height: 300px;
      padding-left: 30px;
      padding-top: 20px;
      border-right: 1px solid #8A8888;
      border-bottom: 1px solid #8A8888;
      .applicant-info-card-content{
        line-height: 35px;
      } 
      .small-ball{
        position: absolute;
        left: 317px;
        top: 278px;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background-color: #158f9c;
      }
    }
    .applicant-info-card-right{
      width: 783px;
      padding: 20px;
      padding-bottom: 0px;
      height: 300px;
      .applicant-info-card-content{
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 210px;
      }
    }
  }
  .applicant-info-bottom{
    height: 330px;
    padding: 20px;
  }
} 
</style>